import {request, upload} from '@/request/request';

/**
 * 上传token
 */
export const getUploadToken = (): Promise<any> => {
    return request({ url: '/upload/getLocalToken', data:{}, method: 'GET' })
}


/**
 * 上传
 * @param data
 * @param token
 */
export const uploadImage = (data:any, token:string): Promise<any> => {
    return upload({ url: '/upload/image', data, method: 'GET' }, token)
}
